import Mock from 'mockjs';
// 获取 mock.Random 对象
//const Random = Mock.Random; mock时间测试
//Random.date() + ' ' + Random.time()

let scrollsJson = require('../static/js/json/scrolls.json');
let expertJson1 = require('../static/js/json/experts1.json');
let expertJson2 = require('../static/js/json/experts2.json');



Mock.setup({
  timeout: '200 - 400'
});
Mock.mock('/scrolls', 'post', scrollsJson);
Mock.mock('/experts?currPage=1&pageSize=8', 'get', expertJson1);
Mock.mock('/experts?currPage=2&pageSize=8', 'get', expertJson2);
